package com.shuai.user.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName session_chat_record
 */
@TableName(value ="session_chat_record")
@Data
public class SessionChatRecord implements Serializable {
    /**
     * 当前对话的id
     */
    @TableId(value = "session_chat_id", type = IdType.ASSIGN_ID)
    private Long sessionChatId;

    /**
     * 当前对话所属的会话集合id
     */
    @TableField(value = "session_id")
    private Long sessionId;

    /**
     * 对话的角色 ： system/user/assistant
     */
    @TableField(value = "role")
    private String role;

    /**
     * 对话内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 当前轮消耗的token数量
     */
    @TableField(value = "token_num")
    private Integer tokenNum;

    /**
     * 
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}